﻿@model StartStop.ServiceResources.ListOfRanking

@{
    ViewBag.Title = @Model.Overview.Title + " - " +  @Model.SpecificStatDescription.Description; 
}

<div id="profile-wrap">
    <div id="profile" class="section group">
        <div id="bc">
            You are here: <a href="/">Home</a>
            <a href="#">Detailed Stats</a> <a href="#">  @Model.Overview.Title - 
                @Model.SpecificStatDescription.Name </h2>
        </a>
        </div>
        <!-- /breadcrumb -->
        <div id="generic-wrap">
            <h2 class="medium">
                @Model.Overview.Title - 
                @Model.SpecificStatDescription.Description</h2>
        
            <table class="tbl" cellspacing="0">
                <tr>
                    <th>
                        Rank
                    </th>
                    <th>
                        User
                    </th>
                    <th class="last">
                        Count
                    </th>
                </tr>
                @if (Model != null)
                {
                    foreach (var item in Model.Rankings) 
                    {
                    <tr>
                        <td>
                            @item.Rank
                        </td>
                        <td>
                            <a href="/Stats/User/@Html.Encode(item.Username)">
                            @item.Username
                            </a>
                        </td>
                        <td>
                            @item.Count
                        </td>
                    </tr>
                    }
                }
            </table>
        </div>
        <!-- /generic-wrap -->
    </div>
    <!-- /profile-wrap -->
